package com.smartlazy.sequence.core.sequence;

/**
 * 序列号生成器接口
 * @author xuan on 2018/5/8.
 * https://gitee.com/xuan698400/xsequence
 */
public interface Sequence {

    /**
     * 生成下一个序列号
     *
     * @return 序列号
     * @throws Exception 序列号异常
     */
    long nextValue() throws Exception;
}
